<?php
class DateFunction{
	/**
	 * Function change format date
	 * @date
	 * @string
	 */
	public function changeFormatDate($str){
		$dateReleaseDate = explode('/', $str);
		if (count($dateReleaseDate)>0){
			$d = $dateReleaseDate[0];
			$m = $dateReleaseDate[1];
			$y = $dateReleaseDate[2];
			$date = $y.'-'.$m.'-'.$d;
			return $date;
		}
	}

}
?>